

#ifndef WATCHFACE_H__
#define WATCHFACE_H__


#include "gui.h"

typedef struct
{
    ui_widgets_type_t*      pWidgetlist; // 界面控件
    uint16_t                widget_cnt;  // 界面控件个数
//    retangle_t*             pRetangleList; // 局部刷新矩形区域
    uint16_t                partRefreshCount; // 局部刷新矩形区域的个数

    uint16_t                interval;       // 整屏更新间隔
    uint16_t                part_interval;// 部分更新间隔  
}watchface_t;


extern const watchface_t viewWF1;
extern const watchface_t viewWF2;
extern const watchface_t viewWF3;
extern const watchface_t viewWF4;
extern const watchface_t viewWF5;
extern const watchface_t viewWF6;
extern const watchface_t viewWF7;
extern const watchface_t viewWF8;
extern const watchface_t viewWF9;
extern const watchface_t viewWF10;

gui_view_t* views_load_current_watchface(void);


void wf_on_touch( gui_view_t const * sv, void* pvParameters, gui_menu_t * menu);
void wf_on_button( gui_view_t const *sv, void* pvParameters, gui_menu_t * menu);
void wf_on_event_update( gui_view_t const *sv, void * pvParameters, gui_menu_t * menu);


#endif
